package routers

import (
	"github.com/gin-gonic/gin"
	"new/controllers"
)

func GetStudent(r *gin.RouterGroup) {
	r.GET("/student", controllers.GetStudent) //对应数据库中表student
	r.DELETE("/student", controllers.DelStudent)
	r.PUT("/student", controllers.UpdateStudent)
	r.POST("/student", controllers.AddStudent)
}
